﻿namespace SiteUnion
{
   public struct UBC
   {
      /// <summary>
      /// 时间格式
      /// </summary>
      public const string DATETIME_FORMAT = "yyyy.MM.dd HH:mm";

      /// <summary>
      /// 年
      /// </summary>
      public const string DT_YEAR_FORMAT = "yyyy";

      /// <summary>
      /// 月
      /// </summary>
      public const string DT_MONTH_FORMAT = "MM";

      /// <summary>
      /// 日
      /// </summary>
      public const string DT_DAY_FORMAT = "dd";

      /// <summary>
      /// 每页最多显示10条信息
      /// </summary>
      public const string PAGER = "10";

      /// <summary>
      /// 每页最多显示10条信息
      /// </summary>
      public const int PAGESIZE = 10;

      /// <summary>
      /// 默认个人主页
      /// </summary>
      public const string WWW = "http://www.zhicoo.com";

      /// <summary>
      /// 成员昵称常量
      /// </summary>
      public const string MEMBER_NICKNAME = "MEMBER_NICKNAME";

      /// <summary>
      ///  Cookie KEY常量，存储登录来源
      /// </summary>
      public const string CK_LOGIN_FROM = "login_from";

      /// <summary>
      /// 中文月
      /// </summary>
      public readonly static string[] MONTH_CN = { "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"};

      /// <summary>
      /// 字符串布尔true
      /// </summary>
      public const string STRTRUE = "1";

      /// <summary>
      /// 字符串布尔false
      /// </summary>
      public const string STRFALSE = "0";
   }

   public struct Gender
   {
      /// <summary>
      /// 男性是个棍
      /// </summary>
      public const int MALE = 1;

      /// <summary>
      /// 女性是个圈
      /// </summary>
      public const int FEMALE = 0;

      /// <summary>
      /// 无性别的人，够2的
      /// </summary>
      public const int UNKOWN = 2;
   }

   public struct IncField
   {
      public const string VIEWS = "views";
      public const string DING = "ding";
      public const string MARS = "mars";
      public const string COMMENTS = "comments";
   }

   /// <summary>
   /// 实体的状态
   /// </summary>
   public struct EntityState
   {

      /// <summary>
      /// 已发布
      /// </summary>
      public const string Published = "0";

      /// <summary>
      /// 审批中
      /// </summary>
      public const string Apply = "1";

      /// <summary>
      /// 草稿
      /// </summary>
      public const string Draft = "2";

      /// <summary>
      /// 垃圾
      /// </summary>
      public const string Trash = "3";

      /// <summary>
      /// 系统垃圾
      /// </summary>
      public const string SysTrash = "4";

      public readonly static string[] States = new string[] {"已发布","审核中","草稿","垃圾箱","系统垃圾"};
   }

   public struct ErrorInfo
   { 
      public const string ENTITY_NOT_EXIST = "对不起，没有找到指定的资源，该资源可能被和谐了！";
   }
}
